package com.pan.kang;

import com.pan.kang.util.mock.UnitTestGeneratorUtil;
import com.pan.kang.util.mock.UnitTestObjectGeneratorUtil;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@SpringBootApplication
public class UnitTestApplication implements ApplicationRunner {
    public static void main(String[] args) {
        SpringApplication.run(UnitTestApplication.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        UnitTestGeneratorUtil.generatorUnitTest("com.pan.kang.demo.application");
        UnitTestObjectGeneratorUtil.generatorUnitTestObject("CustomInfoDto",
                "com.pan.kang.demo.dto");
    }
}
